import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class ButtonIcon extends StatelessWidget {
  final String title;
  final VoidCallback onPressed;

  const ButtonIcon({Key key, @required this.title, this.onPressed})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onPressed,
      child: Container(
        child: Row(
          children: [
            Text(
              title,
              style: TextStyle(
                  color: Color(0xff9B9B9B),
                  fontSize: ScreenUtil().setSp(12),
                  fontWeight: FontWeight.w400),
            ),
            Icon(
              Icons.arrow_forward,
              color: Color(0xff9B9B9B),
            )
          ],
        ),
      ),
    );
  }
}
